Optimal. Leaf size=25 \[ \frac {d x}{b}+\frac {(b c-a d) \log (a+b x)}{b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 25, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.074, Rules used = {24, 45}
\begin {gather*} \frac {(b c-a d) \log (a+b x)}{b^2}+\frac {d x}{b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 24
Rule 45
Rubi steps
\begin {align*} \int \frac {a c+(b c+a d) x+b d x^2}{(a+b x)^2} \, dx &=\frac {\int \frac {b^2 c+b^2 d x}{a+b x} \, dx}{b^2}\\ &=\frac {\int \left (b d+\frac {b (b c-a d)}{a+b x}\right ) \, dx}{b^2}\\ &=\frac {d x}{b}+\frac {(b c-a d) \log (a+b x)}{b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 25, normalized size = 1.00 \begin {gather*} \frac {d x}{b}+\frac {(b c-a d) \log (a+b x)}{b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.45, size = 26, normalized size = 1.04
method | result | size |
default | \(\frac {d x}{b}+\frac {\left (-a d +b c \right ) \ln \left (b x +a \right )}{b^{2}}\) | \(26\) |
risch | \(\frac {d x}{b}-\frac {\ln \left (b x +a \right ) a d}{b^{2}}+\frac {\ln \left (b x +a \right ) c}{b}\) | \(32\) |
norman | \(\frac {d \,x^{2}-\frac {a^{2} d}{b^{2}}}{b x +a}-\frac {\left (a d -b c \right ) \ln \left (b x +a \right )}{b^{2}}\) | \(44\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 25, normalized size = 1.00 \begin {gather*} \frac {d x}{b} + \frac {{\left (b c - a d\right )} \log \left (b x + a\right )}{b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.36, size = 24, normalized size = 0.96 \begin {gather*} \frac {b d x + {\left (b c - a d\right )} \log \left (b x + a\right )}{b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.07, size = 20, normalized size = 0.80 \begin {gather*} \frac {d x}{b} - \frac {\left (a d - b c\right ) \log {\left (a + b x \right )}}{b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 117 vs.
\(2 (25) = 50\).
time = 0.92, size = 117, normalized size = 4.68 \begin {gather*} b d {\left (\frac {2 \, a \log \left (\frac {{\left | b x + a \right |}}{{\left (b x + a\right )}^{2} {\left | b \right |}}\right )}{b^{3}} + \frac {b x + a}{b^{3}} - \frac {a^{2}}{{\left (b x + a\right )} b^{3}}\right )} - \frac {{\left (b c + a d\right )} {\left (\frac {\log \left (\frac {{\left | b x + a \right |}}{{\left (b x + a\right )}^{2} {\left | b \right |}}\right )}{b} - \frac {a}{{\left (b x + a\right )} b}\right )}}{b} - \frac {a c}{{\left (b x + a\right )} b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.05, size = 26, normalized size = 1.04 \begin {gather*} \frac {d\,x}{b}-\frac {\ln \left (a+b\,x\right )\,\left (a\,d-b\,c\right )}{b^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________